<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="common/form :: head"></head>
	
	<body class="mainbody">
		<form method="POST" th:object="${obj}" enctype="multipart/form-data">
			<div th:replace="common/form :: location('请假管理',*{id} gt 0 ?'修改请假信息':'新增请假信息')"></div>
			<div id="floatHead" class="content-tab-wrap">
			  <div class="content-tab">
			    <div class="content-tab-ul-wrap">
			      <ul>
			        <li><a href="javascript:;">请假信息</a></li>
			      </ul>
			    </div>
			  </div>
			</div>
			<div class="tab-content">
 
				<dl>
					<dt>请假原因</dt>
				    <dd>
				      <input type="text" th:field="*{reason}" class="input normal" data-type="*1-500" />
				      <span class="Validform_checktip">*请填写请假原因</span>
				    </dd>
				</dl>
				
				<dl>
					<dt>请假人</dt>
				    <dd>
				    	<span class="rule-multi-porp">
				    		<th:block th:each="employee4,employee4Stat:${@employeeService.getAllEmployees()}">
				    		 	<input type="checkbox" th:name="employeeId" th:value="${employee4.id}" th:if="${obj.employee4  == null}" />
								<input type="checkbox" th:name="employeeId" th:value="${employee4.id}" th:if="${obj.employee4 != null}" th:checked="${obj.employee4.id} == ${employee4.id}"/>
								<label th:for="'employee4['+${employee4Stat.count-1}+'].id'" th:text="${employee4.name}"></label>
				    		</th:block>
				    	</span>
				    </dd>
				</dl>
		 
				<dl>
					<dt>所属部门</dt>
				    <dd>
				    	<span class="rule-multi-porp">
				    		<th:block th:each="department5,department5Stat:${@departmentService.getAllDepartment()}">
				    			<input type="checkbox" th:name="departmentId" th:value="${department5.id}" th:if="${obj.department5 == null}" />
				    			<input type="checkbox" th:name="departmentId" th:value="${department5.id}" th:if="${obj.department5 !=null}" th:checked="${obj.department5.id}== ${department5.id}" />
				    			<label th:for="'department5['+${department5Stat.count-1}+'].id'" th:text="${department5.name}"></label>
				    		</th:block>
				    	</span>
				    </dd>
				</dl>
			 	
				<dl>
					<dt>审核者</dt>
				    <dd>
				    	<span class="rule-multi-porp">
				    		<th:block th:each="employee5,employee5Stat:${@employeeService.getAllEmployees()}">
				    		 	<input type="checkbox" th:name="employeeId2" th:value="${employee5.id}" th:if="${obj.employee5  == null}" />
								<input type="checkbox" th:name="employeeId2" th:value="${employee5.id}" th:if="${obj.employee5 != null}" th:checked="${obj.employee5.id} == ${employee5.id}"/>
								<label th:for="'employee5['+${employee5Stat.count-1}+'].id'" th:text="${employee5.name}"></label>
				    		</th:block>
				    	</span>
				    </dd>
				</dl>
				
				<dl>
					<dt>审核时间</dt>
				    <dd>
				      <input type="date" th:field="*{checkTime}" data-type="*2-10" class="input normal" />
				      <span class="Validform_checktip">*请填写审核时间</span>
				    </dd>
				</dl>
				
				<dl>
					<dt>状态</dt>
					<dd>
				    <label style="width: 80px;"> 
        				<input th:field="*{state}" type="radio" name="mode" value="已审核"/>&nbsp;&nbsp;已审核
    				</label>
    				
    				<label style="width: 80px;"> 
        				<input th:field="*{state}" type="radio" name="mode" value="未审核"/>&nbsp;&nbsp;未审核
    				</label>
    				</dd>
				</dl>
				
			</div>
			<div th:replace="common/form :: footer"></div>
		</form>

		<script type="text/javascript" th:replace="common/form :: formscript">
		</script>
	</body>
</html>